home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: asciizero@aol.com (ASCII zero)
- Newsgroups: comp.lang.c
- Subject: Re: I can't print the date in the format I want.
- Date: 22 Feb 1996 05:30:48 -0500
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4ghgko$474@newsbf02.news.aol.com>
- References: <3129e355.114134@news.iquest.net>
- Reply-To: asciizero@aol.com (ASCII zero)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- In a message posted on 20 Feb 1996 15:45:41 GMT, rclark@iquest.net wrote:
-
- >>printf("-> %i", debug); /* can we get the length of the formatted
- string? */
-
- >Yes. Use the srtlen() function (#include <string.h>).
-
- >> getchar(); /*OK up to this point? */
-
- >"Code has no effect."
-
- Thank you for pointing this out. Please observe that the only reason I
- inserted *int debug* and getchar() was because I DO NOT have a debugger at
- my disposal. I thought that if I could get the length of the formatted
- string by *extracting* the return value of strftime(), then I would know
- that str was indeed formatted. The getchar() function was just there as a
- breakpoint before the crash. This code is just a test code for strftime,
- which I was trying to insert into my actual program.
-
-